package treeset;
import java.util.TreeMap;

public class Test {
    public static void main(String[] args) {
        TreeMap<Integer,String> treeMap1 = new TreeMap<>();
        treeMap1.put(7,"7");
        treeMap1.put(6,"6");
        treeMap1.put(5,"5");
        treeMap1.put(4,"4");
        treeMap1.put(3,"3");
        treeMap1.put(2,"2");
        treeMap1.put(9,"9");
        System.out.println(treeMap1.containsKey(5));
        System.out.println(treeMap1.get(5));
        System.out.println(treeMap1.firstKey());
        System.out.println(treeMap1.floorKey(8));
        System.out.println(treeMap1.containsKey(4));

    }
}
